package com.example.stretching;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class InfoTabActivity extends TabActivity{
	static TabHost tabHost2; 
	Intent intent;
		
	/**
	 * stretching3에서 stretching3에서  목, 허리부분을 tab으로 나눠서 보여줌
	 * @author DS
	 */
		@Override
		protected void onCreate(Bundle savedInstanceState) {
			// TODO Auto-generated method stub
			super.onCreate(savedInstanceState);
//			tabHost = getTabHost();
//				 requestWindowFeature(Window.FEATURE_NO_TITLE);
		        
			    
				// custom title bar
//				    requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
					setContentView(R.layout.include_tab_main);
//				    getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title);
//				main_back = (ImageView)findViewById(R.drawable.main_back);

	        tabHost2 = (TabHost) findViewById(android.R.id.tabhost);
	        tabHost2.setup(getLocalActivityManager()); 

			    TabSpec ts4 = tabHost2.newTabSpec("Neck, Shoulder");
			    ts4.setIndicator("Neck, Shoulder");
			    ts4.setContent(new Intent(this, InfoTabNeck.class));
			    tabHost2.addTab(ts4);
			    
			    TabSpec ts5 = tabHost2.newTabSpec("Waist, Back");
			    ts5.setContent(new Intent(this, InfoTabWaist.class));
			    ts5.setIndicator("Waist, Back");
			    tabHost2.addTab(ts5);
			    
			    tabHost2.setCurrentTab(0);
		}
			
		}

	
